package com.zhuoli.service.springboot.configuration.service;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @Author: zhuoli
 * @Date: 2018/7/24 12:23
 * @Description:
 */
@Component
@ConfigurationProperties(prefix = "profile.test")
public class GetProfileProperties {
    private String env;

    private String desc;

    public String getEnv() {
        return env;
    }

    public void setEnv(String env) {
        this.env = env;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    @Override
    public String toString() {
        return "ProfileProperties{" +
                "env='" + env + '\'' +
                ", desc='" + desc + '\'' +
                '}';
    }
}
